/**
 * @(#) Order.java
 */

package TheRestaurantOwner;

public class Order
{
	private Beverage[] beverages;
	private Dish[] dishes;
	
	public Order( Beverage[] beverages, Dish[] dishes )
	{
		this.beverages = beverages;
		this.dishes = dishes;
	}

	public Beverage[] getBeverages( )
	{
		return beverages.clone();
	}

	public Dish[] getDishes( )
	{
		return dishes.clone();
	}

	public int getIngredientsCost( )
	{
		return beverages[0].getIngredientsCost() +
				beverages[1].getIngredientsCost() +
				dishes[0].getIngredientsCost() +
				dishes[1].getIngredientsCost();
	}
}
